@echo off 
SET a=
SET b=hello
if [%a%]==[] echo "String A is empty" 
if [%b%]==[] echo "String B is empty "